import Vue from 'vue'
import Router from 'vue-router'
import Manager from "../components/Manager";
import BzMallAdmin from "../components/system/BzMallAdmin";
import BzMallRole from "../components/system/BzMallRole";
import BzMallBrand from "../components/system/BzMallBrand";
import AddBrand from "../components/system/AddBrand";
import BzMallCategory from "../components/system/BzMallCategory";
import BzMallAttrGroup from "../components/system/BzMallAttrGroup";
import BzMallAttr from "../components/system/BzMallAttr";
import Login from "../components/Login";
import test from "../components/test";

Vue.use(Router)

export default new Router({
  routes: [
    {path: "/test", component: test},
    {path: "/login", component: Login},
    {
      path: "/manager", component: Manager,
      children: [
        {path: "/sys/admin", component: BzMallAdmin},
        {path: "/sys/role", component: BzMallRole},
        {path: "/product/brand", component: BzMallBrand},
        {path: "/product/addbrand", component: AddBrand},
        {path: "/product/category", component: BzMallCategory},
        {path: "/product/attrGroup", component: BzMallAttrGroup},
        {path: "/product/attr", component: BzMallAttr}
      ]
    }
  ]
})
